using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Builder
{
  public partial class frmChangeXPPct : Form
  {
    public int MaxGameXPPct;

    public frmChangeXPPct(int CurrentMax)
    {
      InitializeComponent();
      MaxGameXPPct = CurrentMax;
      spnedtMaxGameXPPct.Value = CurrentMax;
    }

    private void btnOK_Click(object sender, EventArgs e)
    {
      this.DialogResult = DialogResult.OK;
      MaxGameXPPct = (int)spnedtMaxGameXPPct.Value;
      this.Hide();
    }

    private void btnCancel_Click(object sender, EventArgs e)
    {

      this.DialogResult = DialogResult.Cancel;
      this.Hide();
    }
  }
}